#include <REGX52.H>

void sleep(int m)
{
	int i=0;
	for(i=0;i<m*10;i++);
}
int main()
{
	while(1)
	{
		P1=0xFE;
		sleep(1000);
		P1=0xFD;
		sleep(1000);
		P1=0xFB;
		sleep(1000);
		P1=0xF7;
		sleep(1000);
		P1=0xEF;
		sleep(1000);
		P1=0xDF;
		sleep(1000);
		P1=0xBF;
		sleep(1000);
		P1=0x7F;
		sleep(1000);
	}
	return 0;
}